package com.andyage.util;

import java.util.Date;

import com.andyage.admin.bean.AdLogBean;

public class LogUtil {
	/**
	 * 写入日志
	 * @param operatorId 操作人的id
	 * @param operatDescription 操作描述
	 * @param operatReq 操作的请求
	 * @return AdLogBean
	 */
	public static AdLogBean addLog(String operatorId,String operatDescription,String operatReq,String remark){
		System.out.println(operatReq);
		AdLogBean adlog = new AdLogBean();
		adlog.setLogId(GetUUID.get());
		adlog.setOperatorId(operatorId);
		adlog.setOperatReq(operatReq);
		adlog.setOperatDescription(operatDescription);
		adlog.setOperatTime(new Date());
		adlog.setRemark(remark);
		return adlog;
	}
}
